{% extends 'base.html' %}
{% block content %}
  <section>
    <h2>初始化框架</h2>
    <form method="post">
      <label>项目名:</label>
      <input type="text" name="project" placeholder="IFASystem" />
      <br/>

      <label>语言选择:</label>
      <label><input type="checkbox" name="langs" value="java" /> Java</label>
      <label><input type="checkbox" name="langs" value="python" checked /> Python</label>
      <label><input type="checkbox" name="langs" value="nodejs" /> Node.js</label>
      <br/>
      <small>或使用逗号分隔输入：<input type="text" name="langs" value="python,java" style="width: 220px;" /></small>
      <br/>

      <label>风格:</label>
      <select name="style">
        <option value="mimic">mimic</option>
        <option value="ddd">ddd</option>
        <option value="mvc">mvc</option>
      </select>
      <br/>

      <label>用户类型:</label>
      <select name="user">
        <option value="dev">dev</option>
        <option value="prod">prod</option>
      </select>
      <br/>

      <label>触发演进:</label>
      <label><input type="radio" name="evolve" value="none" checked /> 不触发</label>
      <label><input type="radio" name="evolve" value="verify" /> 验证(verify)</label>
      <label><input type="radio" name="evolve" value="apply" /> 应用(apply)</label>
      <br/>

      <label><input type="checkbox" name="no_config" /> 不写入配置 (No-Config)</label>
      <label><input type="checkbox" name="write_config" checked /> 写入配置 (Write-Config)</label>
      <br/>

      <p>框架模式（上游仓库）设置请前往：<a href="/framework_mode">框架模式</a></p>

      <button type="submit">执行初始化</button>
    </form>
    {% if output %}
      <h3>输出</h3>
      <pre>{{ output }}</pre>
    {% endif %}
  </section>
{% endblock %}
